package com.example.example.modules.test.service;

import com.example.example.modules.test.dao.entity.DictEntity;
import com.example.example.modules.test.dao.mapper.DictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2022/9/8
 */
@Repository
public class DictEntityService {
    @Autowired
    private DictMapper dictMapper;

    /**
     * 根据条件查询
     * @param example
     * @return
     */
    public List<DictEntity> selectByExample(Example example) {
        return dictMapper.selectByExample(example);
    }
}
